<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<form method="post" action="${pageContext.request.contextPath}/writeAndUpdateSubmit.do" 
	style="margin: 0" enctype="multipart/form-data">
	<div class="write-and-update">
		<legend>글쓰기</legend>
		<p class="board">
		<!-- 	<label for="writer">글쓴이</label> -->
			<input class="input-xxlarge" type="text" name="writer" value="${blogUser.name}" placeholder="글쓴이" readonly>
			<%-- <input type="text" name="writer" value="${board.writer}"> --%>
		</p>
		<p class="board">
			<!-- <label for="title">제목</label> -->
			<input class="input-xxlarge" type="text" name="title" placeholder="제목" value="${board.title}">
		</p>
		<p class="board">
			<textarea id="board-content" name="content" rows="10" cols="50">${board.content}</textarea>
			<script type="text/javascript">
				//<![CDATA[
				 CKEDITOR.replace( 'board-content',{
					 toolbar:
						    [
								['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
								['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
								['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
								'/',
								['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
								['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
								['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
								['Link','Unlink','Anchor'],
								['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
								'/',
								['Styles','Format','Font','FontSize'],
								['TextColor','BGColor'],
								['Maximize', 'ShowBlocks','-','About']
						    ]
					 } );
				//]]>
			</script>
		</p>
		<p class="board">
			<input class="input-xxlarge" type="file" name="file" placeholder="파일 첨부" />
		</p>
		<p>
			<input type="hidden" name="boardSeq" value="${board.boardSeq}"/>
			<input type="hidden" name="categoryCode" value="${categoryCode}"/>
			<input type="submit" value="전송" class="btn btn-primary">
		</p>
	</div><!-- commentWrite close -->
</form>